package Server;
/* file comment */
import java.util.LinkedList;

/**
 * @author Long Zheng
 *
 * @version $Revision: 1.0 $
 */

public class Patient extends User {
	
	/**
	 * Method toString.
	 * @return String
	 */
	public String toString(){
		final String str = "";
		return str;
	}
	
	/**
	 * Field medicalhistory.
	 */
	private MedicalHistory medicalhistory;

	/**
	 * Field appointmentList.
	 */
	private LinkedList<Appointments> appointmentList;
	
	/**
	 * Constructor for Patient.
	 * @param n String
	 * @param id int
	 */
	protected Patient(String n, String p) {
		super(n, p);
		setMedicalhistory(new MedicalHistory());
		setAppointmentList(new LinkedList<Appointments>());
		// TODO Auto-generated constructor stub
	}

	/**
	 * Method setMedicalhistory.
	 * @param medicalhistory MedicalHistory
	 */
	public void setMedicalhistory(MedicalHistory medicalhistory) {
		this.medicalhistory = medicalhistory;
	}

	/**
	 * Method getMedicalhistory.
	
	 * @return MedicalHistory */
	public MedicalHistory getMedicalhistory() {
		return medicalhistory;
	}

	/**
	 * Method setAppointmentList.
	 * @param appointmentList LinkedList<Appointments>
	 */
	public void setAppointmentList(LinkedList<Appointments> appointmentList) {
		this.appointmentList = appointmentList;
	}

	/**
	 * Method getAppointmentList.
	
	 * @return LinkedList<Appointments> */
	public LinkedList<Appointments> getAppointmentList() {
		return appointmentList;
	}
	
	
	
}
